﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace HpxWMS_Api.Models
{
    /// <summary>
    /// 参数模型-添加用户类
    /// </summary>
    public class Ui
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage ="用户名是必须的")]
        [MinLength(5,ErrorMessage ="用户名不能小于5")]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage ="密码是必须的")]
        [MinLength(6, ErrorMessage = "密码不能小于6")]
        public string UserPwd { get; set; }
        /// <summary>
        /// 姓名（昵称）
        /// </summary>
        public string NickName { get; set; }
    }
}